/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

optionsState = "closed";

function $(id) {
    return document.getElementById(id);
}

function focusOnInputNon() {
    if ($("inputnon").value == "Type here") {
        $("inputnon").value="";
        $("inputnon").setAttribute("class", "inputnon");
    }
}

function blurOnInputNon() {
    if ($("inputnon").value == "") {
        $("inputnon").value="Type here";
        $("inputnon").setAttribute("class", "inputnonbef");
    }
}

function openExp() {
    $('input_experimental').style.display = "block";
    $('input_nonexperimental').style.display = "none";
}
function openBasic() {
    $('input_nonexperimental').style.display = "block";
    $('input_experimental').style.display = "none";
}


function toggleOptions() {
    if (optionsState == "closed") {
        $("optionsbutton").value = "^";
        $("options").style.display = "block";
        optionsState = "open";
    } else {
        $("optionsbutton").value = "v";
        $("options").style.display = "none";
        optionsState = "closed";
    }
}

function enableInput(id) {
    $(id).disabled = false;
}

function disableInput(id) {
    $(id).disabled = true;
}